package com.night.common.entity;

/**
 * @author rzh6230
 * 2022/8/28 10:35
 * Http状态码
 */

public enum StatusCode {
    OK(200,"成功返回"),
    FAIL(400,"失败"),
    ACCOUNT_FAIL(401,"账户或密码错误"),
    CAPTCHA_FAIL(402,"验证码错误"),
    TOKEN_FAIL(403,"令牌失效"),
    OTHER_LOGIN(404,"异地登录"),
    ERROR(500,"服务器错误"),
    NO_PERM(700,"权限不足"),
    NO_SESSION(701,"会话失效"),
    VALUE_FAIL(800,"参数错误");

    public final int code;
    public final String  msg;
    StatusCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
